package com.kitten.kittenmcpserverqq;

import com.kitten.kittenmcpserverqq.tools.QQTool;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class KittenMcpServerQqApplication {

    public static void main(String[] args) {
        SpringApplication.run(KittenMcpServerQqApplication.class, args);
    }

    @Bean
    public ToolCallbackProvider qqTool(QQTool qqTool) {
        return MethodToolCallbackProvider.builder()
                .toolObjects(qqTool)
                .build();
    }

}
